import request from '@/utils/request'
//

//获取水机列表water_card
export function getWaterCardList(params) {
    return request({
        url: '/water/cards',
        method: 'get',
        params
    })
}

//获取社区详情
export function getWaterCardDetail(params) {
    return request({
        url: '/water/cards/detail',
        method: 'get',
        params
    })
}
export function getWaterCardSelectList(params) {
    return request({
        url: '/water/cards/alllist',
        method: 'get',
        params
    })
}
//添加
export function createWaterCard(data) {
    return request({
        url: '/water/cards/create',
        method: 'post',
        data
    })
}

//修改
export function updateWaterCard(data) {
    return request({
        url: '/water/cards/update',
        method: 'put',
        data
    })
}


//修改
export function changeWaterCardFiledStatus(data) {
    return request({
        url: '/water/cards/changeFiledStatus',
        method: 'put',
        data
    })
}


//删除
export function delWaterCard(data) {
    return request({
        url: '/water/card/delete',
        method: 'delete',
        data
    })
}


